package com.iyue.sso.bean;

import java.io.Serializable;
import java.util.Date;

public class SSOInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5402409937137448264L;

	// public static String IVKEY = "5EB68519732AF4C2";
	// public static String SECRET = "EFBAC24AC7919D83";

	@SuppressWarnings("unused")
	private Boolean valid;
	private Integer username;
	private String src;
	private Date expire;

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public Date getExpire() {
		return expire;
	}

	public void setExpire(Date expire) {
		this.expire = expire;
	}

	public Boolean getValid() {
		if (this.expire == null) {
			return false;
		}

		if (new Date().after(this.expire)) {
			return false;
		}

		return true;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	public Integer getUsername() {
		return username;
	}

	public void setUsername(Integer username) {
		this.username = username;
	}

}
